package com.nbjtjc.safe.mapper.emg.handle;

import com.nbjtjc.safe.model.emg.handle.EmgEvent;
import com.nbjtjc.util.MyMapper;
import net.bytebuddy.agent.builder.AgentBuilder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface EmgEventMapper extends MyMapper<EmgEvent> {

    List<EmgEvent> search(@Param("event") EmgEvent emgEvent);
    @Select("update emg_event set reported=1 where id=#{eventId}")
    void setReported(@Param("eventId") int eventId);
}